package com.guigu.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.domain.dto.SubjectInfoDTO;
import com.guigu.domain.entity.SubjectInfo;
import com.guigu.domain.vo.SubjectInfoVO;
import com.guigu.mapper.SubjectInfoMapper;
import com.guigu.result.PageResult;
import com.guigu.service.ISubjectInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * 题目信息表(SubjectInfo)表服务实现类
 *
 * @author makejava
 * @since 2024-06-02 19:28:32
 */
@Service("subjectInfoService")
public class SubjectInfoServiceImpl extends ServiceImpl<SubjectInfoMapper, SubjectInfo> implements ISubjectInfoService {

    @Resource
    private SubjectInfoMapper subjectInfoMapper;


    @Override
    public int countByCondition(SubjectInfo subjectInfo, Long categoryId, Long labelId) {
        return subjectInfoMapper.countByCondition(subjectInfo,categoryId,labelId);
    }

    @Override
    public List<SubjectInfo> queryPage(SubjectInfo subjectInfo, Long labelId, Long categoryId, int start, Integer pageSize) {
        return subjectInfoMapper.queryPage(subjectInfo, labelId, categoryId, start, pageSize);
    }
}
